'use strict'

const Promise = require('bluebird')
const request = Promise.promisify(require('request'))

exports.getJSON = function(url){
  return new Promise(function(resolve,reject){
    request({'url':url,'json':true})
    .then(function(response){
     return resolve(response.body)
    })
  })
}
